package com.zj.study.utils.validation.validator.positive;


import com.zj.study.utils.validation.annotation.ValidateSupport;
import org.springframework.lang.NonNull;

/**
 * @author 谭耀飞
 * @since 2020.12.0
 */
@ValidateSupport(Integer.class)
public class PositiveValidatorForInteger extends AbstractPositiveValidator<Integer> {

  @Override
  boolean compare(@NonNull Integer value) {
    return value > 0;
  }
}
